'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 建筑验证
 * @author sundbcn@gmail.com (sun debing)
 */

var buildType = require('../consts/buildType.js');
var _ = require('lodash');

exports.idVaildBuildType = function (build_type) {
    var isVaild = false;
    _.forEach(buildType, function (legal_build_type, key) {
        if (legal_build_type === build_type) {
            isVaild = true;
            return true;
        }
    });
    if (!isVaild) {
        console.error(' error  ------   this is buile_type Does not exist');
    }
    return isVaild;
};
